You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
TOpenCLMtxVec Class
>
TOpenCLMtxVec Methods
>
Scale Method
>
TOpenCLMtxVec.Scale Method ([In] double)
Dew Math for .NET
Example
TOpenCLMtxVec.Scale Method ([In] double)
using
Dew.Math
;
using
Dew.Math.Units
;
namespace
Dew.Examples() {
void
Example() {
TOpenCLVector
a; MtxVec.CreateIt(
out
a);
try
{ a.CopyFromArray(
new
double
[] {2,3,5});
// a = [2,3,5]
a.Scale(3);
// a = [6,9,15]
}
finally
{ MtxVec.FreeIt(
ref
a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
Contents
|
Index
|
Home